import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document, ObjectId } from 'mongoose';

export type EveryDayIsDocument = EveryDayIs & Document;

@Schema()
export class EveryDayIs {
  /**
   * 猜涨的用户
   */
  @Prop()
  guessRise: ObjectId[];

  /**
   * 猜跌的用户
   */
  @Prop()
  guessFall: ObjectId[];

  /**
   * 今天是不是涨
   */
  @Prop()
  isRise: boolean;
}

export const EveryDayIsSchema = SchemaFactory.createForClass(EveryDayIs);
